package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FkwzTaskFollowLogsMapper;
import com.ruoyi.system.domain.FkwzTaskFollowLogs;
import com.ruoyi.system.service.IFkwzTaskFollowLogsService;

/**
 * 项目跟进信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-11
 */
@Service
public class FkwzTaskFollowLogsServiceImpl implements IFkwzTaskFollowLogsService 
{
    @Autowired
    private FkwzTaskFollowLogsMapper fkwzTaskFollowLogsMapper;

    /**
     * 查询项目跟进信息
     * 
     * @param followId 项目跟进信息主键
     * @return 项目跟进信息
     */
    @Override
    public FkwzTaskFollowLogs selectFkwzTaskFollowLogsByFollowId(Long followId)
    {
        return fkwzTaskFollowLogsMapper.selectFkwzTaskFollowLogsByFollowId(followId);
    }

    /**
     * 查询项目跟进信息列表
     * 
     * @param fkwzTaskFollowLogs 项目跟进信息
     * @return 项目跟进信息
     */
    @Override
    public List<FkwzTaskFollowLogs> selectFkwzTaskFollowLogsList(FkwzTaskFollowLogs fkwzTaskFollowLogs)
    {
        return fkwzTaskFollowLogsMapper.selectFkwzTaskFollowLogsList(fkwzTaskFollowLogs);
    }

    /**
     * 新增项目跟进信息
     * 
     * @param fkwzTaskFollowLogs 项目跟进信息
     * @return 结果
     */
    @Override
    public int insertFkwzTaskFollowLogs(FkwzTaskFollowLogs fkwzTaskFollowLogs)
    {
        fkwzTaskFollowLogs.setCreateTime(DateUtils.getNowDate());
        return fkwzTaskFollowLogsMapper.insertFkwzTaskFollowLogs(fkwzTaskFollowLogs);
    }

    /**
     * 修改项目跟进信息
     * 
     * @param fkwzTaskFollowLogs 项目跟进信息
     * @return 结果
     */
    @Override
    public int updateFkwzTaskFollowLogs(FkwzTaskFollowLogs fkwzTaskFollowLogs)
    {
        fkwzTaskFollowLogs.setUpdateTime(DateUtils.getNowDate());
        return fkwzTaskFollowLogsMapper.updateFkwzTaskFollowLogs(fkwzTaskFollowLogs);
    }

    /**
     * 批量删除项目跟进信息
     * 
     * @param followIds 需要删除的项目跟进信息主键
     * @return 结果
     */
    @Override
    public int deleteFkwzTaskFollowLogsByFollowIds(Long[] followIds)
    {
        return fkwzTaskFollowLogsMapper.deleteFkwzTaskFollowLogsByFollowIds(followIds);
    }

    /**
     * 删除项目跟进信息信息
     * 
     * @param followId 项目跟进信息主键
     * @return 结果
     */
    @Override
    public int deleteFkwzTaskFollowLogsByFollowId(Long followId)
    {
        return fkwzTaskFollowLogsMapper.deleteFkwzTaskFollowLogsByFollowId(followId);
    }
}
